\hypertarget{class_qt_soap_namespaces}{}\section{Qt\+Soap\+Namespaces Class Reference}
\label{class_qt_soap_namespaces}\index{Qt\+Soap\+Namespaces@{Qt\+Soap\+Namespaces}}


The \mbox{\hyperlink{class_qt_soap_namespaces}{Qt\+Soap\+Namespaces}} class provides a registry for X\+ML namespaces and prefixes for use in Qt\+Soap.  




{\ttfamily \#include $<$qtsoap.\+h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_qt_soap_namespaces_aef73fe57357526093afb3fa423c3599c}{register\+Namespace}} (const Q\+String \&prefix, const Q\+String \&uri)
\item 
Q\+String \mbox{\hyperlink{class_qt_soap_namespaces_a745c4bc78333d1ee9d0c01efc38c5937}{prefix\+For}} (const Q\+String \&ns)
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \mbox{\hyperlink{class_qt_soap_namespaces}{Qt\+Soap\+Namespaces}} \& \mbox{\hyperlink{class_qt_soap_namespaces_ab859916f047d88209d505942232d99f5}{instance}} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \mbox{\hyperlink{class_qt_soap_namespaces}{Qt\+Soap\+Namespaces}} class provides a registry for X\+ML namespaces and prefixes for use in Qt\+Soap. 

When a \mbox{\hyperlink{class_qt_soap_message}{Qt\+Soap\+Message}} is converted to X\+ML via \mbox{\hyperlink{class_qt_soap_message_a5c9c6997f2ee1b35bf73a7988ef87213}{Qt\+Soap\+Message\+::to\+Xml\+String()}}, this class is used to find appropriate X\+ML namespace prefixes for the Q\+Names (qualified names) in the message.

To register a namespace with a prefix, call register(). \mbox{\hyperlink{class_qt_soap_namespaces_a745c4bc78333d1ee9d0c01efc38c5937}{prefix\+For()}} will then return the prefix that is registered for the given namespace, if any.

To access the \mbox{\hyperlink{class_qt_soap_namespaces}{Qt\+Soap\+Namespaces}} registry, call \mbox{\hyperlink{class_qt_soap_namespaces_ab859916f047d88209d505942232d99f5}{Qt\+Soap\+Namespaces\+::instance()}}.


\begin{DoxyCode}
\mbox{\hyperlink{class_qt_soap_namespaces}{QtSoapNamespaces}} &registry = \mbox{\hyperlink{class_qt_soap_namespaces_ab859916f047d88209d505942232d99f5}{QtSoapNamespaces::instance}}();

registry.register(\textcolor{stringliteral}{"pre"}, \textcolor{stringliteral}{"http://www.example.com/"});
QString prefix = registry.\mbox{\hyperlink{class_qt_soap_namespaces_a745c4bc78333d1ee9d0c01efc38c5937}{prefixFor}}(\textcolor{stringliteral}{"http://www.example.com/"}); \textcolor{comment}{// returns "pre"}
\end{DoxyCode}


\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_qt_soap_message}{Qt\+Soap\+Message}} 
\end{DoxySeeAlso}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_qt_soap_namespaces_ab859916f047d88209d505942232d99f5}\label{class_qt_soap_namespaces_ab859916f047d88209d505942232d99f5}} 
\index{Qt\+Soap\+Namespaces@{Qt\+Soap\+Namespaces}!instance@{instance}}
\index{instance@{instance}!Qt\+Soap\+Namespaces@{Qt\+Soap\+Namespaces}}
\subsubsection{\texorpdfstring{instance()}{instance()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_qt_soap_namespaces}{Qt\+Soap\+Namespaces}} \& Qt\+Soap\+Namespaces\+::instance (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}

Returns a reference to the \mbox{\hyperlink{class_qt_soap_namespaces}{Qt\+Soap\+Namespaces}} singleton. \mbox{\Hypertarget{class_qt_soap_namespaces_a745c4bc78333d1ee9d0c01efc38c5937}\label{class_qt_soap_namespaces_a745c4bc78333d1ee9d0c01efc38c5937}} 
\index{Qt\+Soap\+Namespaces@{Qt\+Soap\+Namespaces}!prefix\+For@{prefix\+For}}
\index{prefix\+For@{prefix\+For}!Qt\+Soap\+Namespaces@{Qt\+Soap\+Namespaces}}
\subsubsection{\texorpdfstring{prefix\+For()}{prefixFor()}}
{\footnotesize\ttfamily Q\+String Qt\+Soap\+Namespaces\+::prefix\+For (\begin{DoxyParamCaption}\item[{const Q\+String \&}]{uri }\end{DoxyParamCaption})}

Returns the prefix for the namespace {\itshape uri}, or an empty string if no prefix has been registered for {\itshape uri}. \mbox{\Hypertarget{class_qt_soap_namespaces_aef73fe57357526093afb3fa423c3599c}\label{class_qt_soap_namespaces_aef73fe57357526093afb3fa423c3599c}} 
\index{Qt\+Soap\+Namespaces@{Qt\+Soap\+Namespaces}!register\+Namespace@{register\+Namespace}}
\index{register\+Namespace@{register\+Namespace}!Qt\+Soap\+Namespaces@{Qt\+Soap\+Namespaces}}
\subsubsection{\texorpdfstring{register\+Namespace()}{registerNamespace()}}
{\footnotesize\ttfamily void Qt\+Soap\+Namespaces\+::register\+Namespace (\begin{DoxyParamCaption}\item[{const Q\+String \&}]{prefix,  }\item[{const Q\+String \&}]{uri }\end{DoxyParamCaption})}

Registers the namespace {\itshape uri} with the prefix {\itshape prefix}. 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/soap/qtsoap.\+h\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/soap/qtsoap.\+cpp\end{DoxyCompactItemize}
